//
//  BaseData.h
//  OST
//
//  Created by mac on 13-7-11.
//  Copyright (c) 2013年 mac. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ASIHTTPRequest.h"

typedef void (^DataRecivedBlock)(id data);

@interface BaseData : NSObject <ASIHTTPRequestDelegate>
{
    NSMutableString *reciveData;
}
@property (nonatomic,retain) ASIHTTPRequest *httpRequest;
@property (nonatomic,copy) DataRecivedBlock dataRecivedBlock;
@property (nonatomic,retain) NSMutableString *reciveData;

-(void)reLoadData;
-(void)doneLoadData:(id)data;
-(void)getDataWithDataRecivedBlock:(DataRecivedBlock)bolck;
-(void)reLoadDataWithDataRecivedBlock:(DataRecivedBlock)bolck;
+(BaseData *) sharedInstance;
-(void)cleanData;

-(id)getResultData;

@end
